#!/usr/bin/env python3
# -*- coding: utf-8 -*-

class Mymeta(type):
    def __init__(self, class_name, class_bases, class_dic):
        super(Mymeta, self).__init__(class_name, class_bases, class_dic)

        print(class_name)
        print(class_bases)
        print(class_dic)

    def __new__(cls, *args, **kwargs):
        print("xxxxxxx")
        return super().__new__(cls, *args, **kwargs)


class Test(metaclass=Mymeta):
    def __init__(self, image):
        self._image = image

    def build(self):
        print(1111)


if __name__ == '__main__':
    test = Test("ts")
    print(test)
